🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / node / src / main / kotlin / org / meshtastic / feature / node / component / LastHeardInfo.kt
Displaying Raw • Download
feature/node/src/main/kotlin/org/meshtastic/feature/node/component/LastHeardInfo.kt 92deae785e3ef853f6758a8e550dcc163262914e (92deae78) Text, 2.08 KB
T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.node.component
Tff7b72import T7ee787androidx.compose.material3.MaterialTheme
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.compose.ui.graphics.Color
Tff7b72import T7ee787androidx.compose.ui.graphics.vector.ImageVector
Tff7b72import T7ee787androidx.compose.ui.res.vectorResource
Tff7b72import T7ee787androidx.compose.ui.tooling.preview.PreviewLightDark
Tff7b72import T7ee787org.jetbrains.compose.resources.stringResource
Tff7b72import T7ee787org.meshtastic.core.model.util.formatAgo
Tff7b72import T7ee787org.meshtastic.core.strings.Res
Tff7b72import T7ee787org.meshtastic.core.strings.node_sort_last_heard
Tff7b72import T7ee787org.meshtastic.core.ui.R
Tff7b72import T7ee787org.meshtastic.core.ui.theme.AppTheme
Tf0883e@Composable
Tff7b72fun Td2a8ffLastHeardInfoTb4b4b4(
Te6edf3modifierTb4b4b4: Te6edf3Modifier Tff7b72= Te6edf3ModifierTb4b4b4,
Te6edf3lastHeardTb4b4b4: Tffa657IntTb4b4b4,
Te6edf3currentTimeMillisTb4b4b4: Tffa657LongTb4b4b4,
Te6edf3contentColorTb4b4b4: Te6edf3Color Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3colorSchemeTb4b4b4.Te6edf3onSurfaceTb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3IconInfoTb4b4b4(
Te6edf3modifier Tff7b72= Te6edf3modifierTb4b4b4,
Te6edf3icon Tff7b72= Te6edf3ImageVectorTb4b4b4.Te6edf3vectorResourceTb4b4b4(Te6edf3id Tff7b72= Te6edf3RTb4b4b4.Te6edf3drawableTb4b4b4.Te6edf3ic_antenna_24Tb4b4b4)Tb4b4b4,
Te6edf3contentDescription Tff7b72= Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3node_sort_last_heardTb4b4b4)Tb4b4b4,
Te6edf3text Tff7b72= Te6edf3formatAgoTb4b4b4(Te6edf3lastHeardTb4b4b4, Te6edf3currentTimeMillisTb4b4b4)Tb4b4b4,
Te6edf3contentColor Tff7b72= Te6edf3contentColorTb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tf0883e@PreviewLightDark
Tf0883e@Composable
Tff7b72private Tff7b72fun Td2a8ffLastHeardInfoPreviewTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AppTheme Tb4b4b4{
Te6edf3LastHeardInfoTb4b4b4(
Te6edf3lastHeard Tff7b72= Tb4b4b4(Te6edf3SystemTb4b4b4.Te6edf3currentTimeMillisTb4b4b4(Tb4b4b4) Tff7b72/ T79c0ff1T79c0ff0T79c0ff0T79c0ff0Tb4b4b4)Tb4b4b4.Te6edf3toIntTb4b4b4(Tb4b4b4) Tff7b72- T79c0ff8T79c0ff6T79c0ff0T79c0ff0Tb4b4b4,
Te6edf3currentTimeMillis Tff7b72= Te6edf3SystemTb4b4b4.Te6edf3currentTimeMillisTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s